package org.vectrics.recruiter.struts.tag;

import com.hexacta.hrs.domain.staffing.assignment.AvailabilityStatus;

public class AvailabilityStatusColor {

	private static String noAsignadoColor = "#eb6f6f";
	private static String asignadoClienteColor = "#cfe4a3";
	private static String addOnAvailableColor = "#b8eeec";
	private static String addOnNotAvailableColor = "#eab885";
	private static String internoColor = "#a4cef6";
	private static String timeOffColor = "#d1d1d1";

	public static String getColor(AvailabilityStatus status) {
		if (status.equals(AvailabilityStatus.NoAsignado))
			return noAsignadoColor;
		if (status.equals(AvailabilityStatus.AsignadoCliente))
			return asignadoClienteColor;
		if (status.equals(AvailabilityStatus.AddOnAvailable))
			return addOnAvailableColor;
		if (status.equals(AvailabilityStatus.AddOnNotAvailable))
			return addOnNotAvailableColor;
		if (status.equals(AvailabilityStatus.Interno))
			return internoColor;
		if (status.equals(AvailabilityStatus.TimeOff))
			return timeOffColor;
		return "#000000";
	}

	public static String getTimeOffColor() {
		return timeOffColor;
	}

	public static void setTimeOffColor(String timeOffColor) {
		AvailabilityStatusColor.timeOffColor = timeOffColor;
	}

	public static String getNoAsignadoColor() {
		return noAsignadoColor;
	}

	public static void setNoAsignadoColor(String color) {
		noAsignadoColor = color;
	}

	public static String getAsignadoClienteColor() {
		return asignadoClienteColor;
	}

	public static void setAsignadoClienteColor(String color) {
		asignadoClienteColor = color;
	}

	public static String getInternoColor() {
		return internoColor;
	}

	public static String getAddOnAvailableColor() {
		return addOnAvailableColor;
	}

	public static void setAddOnAvailableColor(String addOnAvailableColor) {
		AvailabilityStatusColor.addOnAvailableColor = addOnAvailableColor;
	}

	public static String getAddOnNotAvailableColor() {
		return addOnNotAvailableColor;
	}

	public static void setAddOnNotAvailableColor(String addOnNotAvailableColor) {
		AvailabilityStatusColor.addOnNotAvailableColor = addOnNotAvailableColor;
	}

	public static void setInternoColor(String color) {
		internoColor = color;
	}
}
